﻿<%@ Page Title="文章管理" Language="C#" MasterPageFile="~/Admin/FormPage.master" AutoEventWireup="true" CodeFile="DetailsForm.aspx.cs" Inherits="NewsPub_DetailsForm"
     ValidateRequest="false"%>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="C">
     <div class="navigation"><a href="javascript:history.go(-1);" class="back">后退</a></div>
		<div id="contentTab">
            <ul class="tab_nav">
                <li class="selected"><a onclick="tabs('#contentTab',0);" href="javascript:;">编辑文章</a></li>
            </ul>
            <div class="tab_con" style="display: block;">         
                 <table class="form_table">
				<col width="180px"/><col/>
       <tbody>
        <tr>
            <th>文章分类：</th>
            <td>
            
                   <%--<asp:TextBox ID="frmClassisID" runat="server" CssClass="txtInput normal digits" ></asp:TextBox>--%>
                <XCL:DropDownList ID="frmClassisID" runat="server" DataTextField="TreeNodeName2"
                    DataValueField="ID" AppendDataBoundItems="True" DataSourceID="ods" ToolTip="请选择分类" >
                </XCL:DropDownList>
                <asp:ObjectDataSource ID="ods" runat="server" SelectMethod="FindAllChildsByParent"
                    DataObjectTypeName="NewsPub.Classis" TypeName="NewsPub.Classis">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="0" Name="parentKey" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                  </td>
              </tr>
           <%--<tr>
            <th>作者：</th>
            <td>
            
                   <asp:TextBox ID="frmUserID" runat="server" CssClass="txtInput normal digits"  ></asp:TextBox>
                  </td>
              </tr>--%>
           <tr>
            <th>标题：</th>
            <td>
            
                    <asp:TextBox ID="frmTitle" runat="server" CssClass="txtInput normal "  Width="650px"></asp:TextBox>                    
                    </td>
              </tr><tr>
            <th>内容：</th>
            <td>
            
                    <%--<asp:TextBox ID="frmBody" runat="server" CssClass="txtInput normal " ></asp:TextBox>--%>
                                    <textarea id="frmBody" name="frmBody" runat="server" style="width:840px;height:390px"></textarea>
                <link rel="stylesheet" href="/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="/kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="/kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="/kindeditor/plugins/code/prettify.js"></script>
	<script>
	    KindEditor.ready(function (K) {
	        var editor = K.create('#ctl00_C_frmBody', {
	            cssPath: '../../kindeditor/plugins/code/prettify.css',
	            uploadJson: '../../kindeditor/upload_json.ashx',
	            fileManagerJson: '../../kindeditor/file_manager_json.ashx',
	            allowFileManager: true,
	            afterCreate: function () {
	                var self = this;
	                //	                K.ctrl(document, 13, function () {
	                //	                    self.sync();
	                //	                    K('form[name=aspnetForm]')[0].submit();
	                //	                });
	                //K.ctrl(self.edit.doc, 13, function () {
	                //    self.sync();
	                //    K('form[name=aspnetForm]')[0].submit();
	                //});
	            }
	        });
	        prettyPrint();

	    });
	</script>  
                    </td>
              </tr><tr>
            <th>摘要：</th>
            <td>
            
                    <asp:TextBox ID="frmTag" runat="server" CssClass="txtInput normal " ></asp:TextBox>                    
                    </td>
              </tr><tr>
            <th>发表时间：</th>
            <td>
                            
                        <XCL:DateTimePicker ID="frmCreateTime" runat="server"></XCL:DateTimePicker>    
                                    
                </td>
              </tr>
           <%--<tr>
            <th>编辑时间：</th>
            <td>
                            
                        <XCL:DateTimePicker ID="frmEditTime" runat="server"></XCL:DateTimePicker>    
                                    
                </td>
              </tr>--%>
           <%--<tr>
            <th>点击数：</th>
            <td>
            </td>
              </tr>--%>

                <tr><th></th>
				<td>
				<asp:Button ID="btnSave" runat="server" Text="提交保存" CssClass="btnSubmit" />
				</td>
				</tr>
				</tbody>
				</table>
            </div>            
        </div>        
</asp:Content>